package model;

import java.util.Comparator;

public class ScoreComparator implements Comparator<ResultItem>{
	
	@Override
	public int compare(ResultItem lhs, ResultItem rhs) {
		
		if (lhs.getScore()- rhs.getScore() > 0) {
            return -1;
        }else if(lhs.getScore()- rhs.getScore() < 0){
            return 1;
        }else{
            return 0;
        }
	}

}
